﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="khanhdaiA.ascx.cs" Inherits="khanhdaiA" %>
<% var list = DsVeDaDat();%>
<div class="khanDaiA">
    <div class="alert alert-info" style="text-align: center;">
        Khán đài A
    </div>
<table cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <div class="khanDaiA1">
            <table cellpadding="0" cellspacing="0">
            <% for (int i = 0; i < 7; i++)
                { %>
                <tr>
                    <td class="type"><%=Convert.ToChar(i+65) %></td>
                    <% for (int j = 0; j < 20; j++)
                        { %>
                        <td>
                        <span class="gheSelected" id='<%="A"+Convert.ToChar(i+65)+(j+1).ToString() %>'><%=j+1 %></span>
                        <% if (Array.Find(list, c => c.Trim() == "A" + Convert.ToChar(i + 65) + (j + 1).ToString()) != null)
                           {%>
                            <asp:Image ID="Image1" runat="server" 
                        ImageUrl="images/ghe/con_trong.png" CssClass="img-polaroid" />
                        <% } else { %>
                            <asp:Image ID="Image2" runat="server" 
                        ImageUrl="images/ghe/khu_vuc_khac.png" CssClass="img-polaroid" />
                        <% } %>
                        </td>
                    <% } %>
                </tr>
            <% } %>
            </table>
            </div>
        </td>
    </tr>
    <tr>
        <td>
            <div class="khanDaiA2">
            <table cellpadding="0" cellspacing="0">
            <% for (int i = 0; i < 6; i++)
                { %>
                <tr>
                    <td class="type"><%=Convert.ToChar(i+65+7) %></td>
                    <% for (int j = 0; j < 40; j++)
                        { %>
                        <td>
                        <span class="gheSelected" id='<%="A"+Convert.ToChar(i+65+7)+(j+1).ToString() %>'><%=j+1 %></span>
                        <% if (Array.Find(list, c => c.Trim() == "A" + Convert.ToChar(i + 65 + 7) + (j + 1).ToString()) != null)
                            {%>
                            <asp:Image ID="Image3" runat="server" 
                        ImageUrl="images/ghe/con_trong.png" CssClass="img-polaroid" />
                        <% } else { %>
                            <asp:Image ID="Image4" runat="server" 
                        ImageUrl="images/ghe/khu_vuc_khac.png" CssClass="img-polaroid" />
                        <% } %>
                        </td>
                    <% } %>
                </tr>
            <% } %>
            </table>
            </div>
        </td>
    </tr>
</table>
</div>